package com.ss.android.image.a.a;

import android.content.Context;

import com.facebook.common.executors.UiThreadImmediateExecutorService;
import com.facebook.common.internal.Supplier;
import com.facebook.drawee.components.DeferredReleaser;

public final class TTDraweeControllerBuilderSupplier implements Supplier<TTDraweeControllerBuilder> {
    private final Context mContext;
    private final TTDraweeControllerFactory mTTDraweeControllerFactory;

    public TTDraweeControllerBuilderSupplier(Context context) {
        this.mContext = context;
        context.getResources();
        this.mTTDraweeControllerFactory = new TTDraweeControllerFactory(DeferredReleaser.getInstance(), UiThreadImmediateExecutorService.getInstance());
    }


    @Override
    public final TTDraweeControllerBuilder get() {
        return new TTDraweeControllerBuilder(this.mContext, this.mTTDraweeControllerFactory);
    }
}

